//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    list:[],
    informationid: ''
  },
onShow: function (options) {
  var self = this
  wx.request({
    url: app.serverUrl +'Abouttwo/showxhzclist',
    method: 'POST',
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    data:{
      openid:app.openid
    },
    success:function(res){
      // console.log(res.data.data);
      self.setData({
        list: res.data.data,
      })
      // console.log(res.data.data[0])
    },
  })

  },
  goscgxq(e) {
    var that = this;
    var informationid = that.data.informationid;
    var id = e.currentTarget.dataset.xhzcid;
    wx.navigateTo({
      url: '/pages/scgxq/scgxq?informationid=' + informationid + '&id=' + id
    })
  },
  onLoad: function (options){
    var that = this;
    console.log(options);
    that.setData({
      informationid: options.informationid
    })
  }
})